package com.ling.dao;

import com.ling.bean.StarBlog;
import com.ling.bean.StarBlogExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StarBlogMapper {
    //定制查询，获取用户userId收藏的所有博客信息，并带上博客详细信息
    List<StarBlog> selectStarBlogsByUserId(String userId);

    long countByExample(StarBlogExample example);

    int deleteByExample(StarBlogExample example);

    int deleteByPrimaryKey(String id);

    int insert(StarBlog record);

    int insertSelective(StarBlog record);

    List<StarBlog> selectByExample(StarBlogExample example);

    StarBlog selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") StarBlog record, @Param("example") StarBlogExample example);

    int updateByExample(@Param("record") StarBlog record, @Param("example") StarBlogExample example);

    int updateByPrimaryKeySelective(StarBlog record);

    int updateByPrimaryKey(StarBlog record);
}